package com.sdweizan.sdk.bytedance.bean.oauth2;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class BdAccessTokenResponse extends BdBaseResponse {

  @JSONField(name = "data")
  private AccessToken data;

  @Data
  @NoArgsConstructor
  public static class AccessToken {

    @JSONField(name = "error_code")
    private Integer errorCode;
    private String description;
    @JSONField(name = "access_token")
    private String accessToken;

    @JSONField(name = "expires_in")
    private Integer expiresIn;

    @JSONField(name = "expiresAt")
    private Integer expiresAt;
  }
}
